package com.wd.shared;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * System exit class,
 * 
 * @author howard Han
 * @date 2009-1-15
 */
public class SystemExit {

    private static Log log = LogFactory.getLog(SystemExit.class.getClass());

    /**
     * Systsem.exit(0) with given message.
     * 
     * @param msg
     */
    public static void exit(String msg) {
        log.fatal(msg);
        System.exit(0);
    }
}
